package com.yungu.swift.system.sys.dao;

import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.system.sys.model.dto.SysSiteFenceDto;
import com.yungu.swift.system.sys.model.dto.SysSiteFenceDto;
import com.yungu.swift.system.sys.model.vo.SiteFenceInfoVo;
import com.yungu.swift.system.sys.model.vo.WayfenceInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 起终点围栏设置
 */
public interface SysSiteFenceMapper extends IMapper<SysSiteFenceDto> {

    /**
     * 批量新增
     * @param list
     * @return
     */
    int addBatch(@Param("fenceList") List<SysSiteFenceDto> list);

    /**
     * 通过起终点ID批量删除
     * @param siteUuid
     * @return
     */
    int delBySiteUuid(@Param("siteUuid") String siteUuid);

    /**
     * 查询围栏信息
     */
    List<SiteFenceInfoVo> queryFenceInfo(@Param("siteUuid") String siteUuid);

}